import {DEFAULT_QUERY_OPTION, DEFAULT_DEALER_QUERY_OPTION} from './constants';
const state = {
    domainData: {
        initData: {
            message: '',
            isFetching: false,
            isDealerUser: true,
            brands: [],
            tradeMethods: [],
            currentCompany: {}
        },
        list: {
            isFetching: false,
            message: '',
            total: 0,
            data: []
        },
        permission: {
            isFetching: false,
            message: '',
            data: []
        },
        dealers: {
            isFetching: false,
            message: '',
            total: 0,
            data: []
        },
        marketDepartments: {
            isFetching: false,
            message: '',
            data: []
        }
    },
    appState: {
        queryCondition: DEFAULT_QUERY_OPTION,
        queryBySort: {},
        queryBySortForDealer: {},
        queryConditionForDealer: DEFAULT_DEALER_QUERY_OPTION,
        locatedKey: '',
    }
};

export default state;
